package com.yuanfeng.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.base.entity.BaseExpressEntity;
import com.yuanfeng.base.vo.ExpressQueryByShopDpexpressVO;
import com.yuanfeng.base.vo.ManageExpressQueryVO;
import com.yuanfeng.commoms.dto.base.BaseExpressDTO;
import com.yuanfeng.commoms.vo.base.KdniaoExpressVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Entity com.yuanfeng.base.entity.BaseExpress
 */
@Mapper
public interface BaseExpressMapper extends BaseMapper<BaseExpressEntity> {

    /**
     * 查询快递公司  feign
     * @return
     */
    List<ManageExpressQueryVO> queryNoTokenTwo();

    /**
     * 新增快递
     *
     * @param baseExpressReq
     */
    void addExpress(@Param("param") BaseExpressDTO baseExpressReq);

    /**
     * 修改快捷
     *
     * @param baseExpressReq
     */
    void updateExpress(@Param("param") BaseExpressDTO baseExpressReq);

    List<ExpressQueryByShopDpexpressVO> newQueryByShopDpexpress(@Param("shopId") Integer shopId);

    KdniaoExpressVO newQuerykdniaoexpress(@Param("id") Integer num);

    boolean updateShopDpexpress(@Param("param") Map<String, Object> map);

    boolean deletcShopDpexpress(@Param("Id") Integer Id);

    int insertShopDpexpress(@Param("param") Map<String, Object> map);
}




